package cn.wenhaha.factory.simple;

import cn.wenhaha.factory.Milk;

/**
 * @ClassName: SimpleFactoryTest
 * @description: TODO 简单工厂模式的测试类
 * @author: wyndem
 * @date: 2019/5/12 10:13
 * @Version: 1.0
 **/
public class SimpleFactoryTest {


    /**
     * description: 程序入口
     * @Author wyndem
     * @Date 2019/5/12 10:13
     * @Param [args]
     * @return void
     **/
    public static void main(String[] args) {
        SimpleFactory simpleFactory = new SimpleFactory();
        Milk mailk = simpleFactory.getMilk("蒙牛");
        System.out.println(mailk.getName());


    }
}
